package com.xuhuan.demo.pattern.bridge;

/**
 * @author huan.xu
 * @date 2021/10/6 18:53
 * @description
 */
public class Client {

    public static void main(String[] args) {
        Phone foldedPhone1 = new FoldedPhone(new Vivo());
        foldedPhone1.open();
        foldedPhone1.call();
        foldedPhone1.close();

        Phone upRightPhone1 = new UpRightPhone(new XiaoMi());
        upRightPhone1.open();
        upRightPhone1.call();
        upRightPhone1.close();

    }
}
